package com.itheima.test.test1.runnable;

public class RunnableDemo  {
    public static void main(String[] args) {
        //创建参数对象
        MyRunnable mr = new MyRunnable();
        //创建线程对象,把mr作为参数传递进去,然后线程去执行MyRunnable里面的方法
        Thread t = new Thread(mr);
        t.start();

        new Thread(new MyRunnable()).start();
    }

}
